/**
 * CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

package com.cmcc.zysoft.infocollection.mobile.service;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.cmcc.zysoft.infocollection.mobile.dao.MAreasDao;
import com.cmcc.zysoft.infocollection.model.Areas;
import com.starit.common.dao.hibernate.HibernateBaseDao;
import com.starit.common.dao.service.BaseServiceImpl;

/**
 * @author 袁凤建
 * <br />邮箱: yuan.fengjian@ustcinfo.com
 * <br />描述: MAreasService.java
 * <br />版本: 1.0.0
 * <br />日期: 2013-8-16 上午11:06:22
 * <br />CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

@Service
public class MAreasService extends BaseServiceImpl<Areas, Integer> {

	@Resource
	private MAreasDao mAreasDao;
	
	@Override
	public HibernateBaseDao<Areas, Integer> getHibernateBaseDao() {
		return this.mAreasDao;
	}
	
	/**
	 * 根据区域ID查找区域信息.
	 * @param areaId 区域ID
	 * @return list
	 */
	public Areas getAreaById(String areaId) {
		return this.mAreasDao.getAreaById(areaId);
	}
}